package com.service.business.base.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.business.base.controller.rep.ConfigRep;
import com.service.business.base.dto.MeasureOfCapitalConfig;
import com.service.dao.model.SysConfig;

import java.util.List;
import java.util.Map;

/**
 * <dl>
 * <dt>platform</dt>
 * <dd>Description:</dd>
 * <dd>Copyright: Copyright (C) 2018</dd>
 * <dd>Company: </dd>
 * <dd>CreateDate: 2019-04-06</dd>
 * </dl>
 */
public interface ConfigService extends IService<SysConfig> {

    SysConfig getConfigByName(String name);

    ConfigRep getConfigRepByName(String name);

    List<SysConfig> getConfigByGroup(Integer group);

    Map<String, String> getConfig2MapByGroup(Integer group);

    Map<String, String> getConfig2MapByGroup(Integer group, String filterConfig);

    Map<String, SysConfig> getConfigMapByGroup(Integer group);

    List<ConfigRep> getConfigRepByGroup(Integer group);

    Boolean configValueIsValid(String name);

    SysConfig getByGroupAndName(Integer group, String name);

    SysConfig getEthNodeConfig();

    SysConfig getByName(String name);

}
